﻿@model BankCreditPortfolio.Areas.Admin.Models.TariffModel

@{
    ViewBag.Title = "Tariff";
}

<strong>@Model.Title</strong>
<p>Here you can find additional information about specified tariff.</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Admin/Styles/forms.css")" rel="stylesheet" type="text/css" />

@using (Html.BeginForm())
{
    <fieldset>
        <legend>Tariff Information</legend>
        <div class="editor-label">
            @Html.LabelFor(m => m.Description)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Description)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Percent)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Percent)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Currency)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Currency)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.RequireGuarantor)
        </div>
            @{
                    if (Model.RequireGuarantor)
                    {
                        <div class="editor-field-text">
                            Yes 
                        </div>
                    }
                    else
                    {
                        <div class="editor-field-text">
                            No
                        </div>
                    }
            }          
        <div class="editor-label">
            @Html.LabelFor(x => x.Years) </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(x => x.Years)</div>
        <div class="editor-label">
            @Html.LabelFor(x => x.Months)</div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(x => x.Months)
            </div>        
        <div class="editor-label">
            @Html.LabelFor(m => m.Fine)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Fine)
        </div>    
        <div class="editor-label">
            @Html.LabelFor(m => m.EarlyRepaimentFine)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.EarlyRepaimentFine)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Min)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Min)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Max)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Max)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.FirstPayment)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.FirstPayment)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.OtherPayments)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.OtherPayments)
        </div>            
        <div class="editor-label">
            @Html.LabelFor(m => m.Used)
        </div>
        @{
                    if (Model.Used)
                    {
                        <div class="editor-field-text">
                            Yes 
                        </div>
                    }
                    else
                    {
                        <div class="editor-field-text">
                            No
                        </div>
                    }
            }   
        <p><input type="submit" value="Back"/></p>
    </fieldset>
}
